//
//  ZZSelector.h
//  RecorderTest
//
//  Created by 张彦东 on 2017/5/24.
//  Copyright © 2017年 Z. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZZSelector;
@protocol ZZSelectorDelegate <NSObject>

@optional
- (void)selector:(ZZSelector *)selector didSelectedRowAtIndex:(NSInteger)index identifier:(NSString *)identifier;
- (void)selector:(ZZSelector *)selector didSelectedRows:(NSSet *)rows identifier:(NSString *)identifier;

@end

@interface ZZSelector : UIView

// 标识
@property (nonatomic, assign) NSString *identifier;
// 选项
@property (nonatomic, strong) NSArray *options;

@property (nonatomic, weak) id<ZZSelectorDelegate> delegate;

// 是否支持多选
@property (nonatomic, assign, getter=isMultipie) BOOL multiple;

- (void)show;

@end
